namespace YM{
    export class Scene extends Entity{
        private _sceneType:SceneType;
        public get sceneType():SceneType{
            return this._sceneType;
        }
        public set sceneType(value:SceneType){
            this._sceneType=value;
        }
        private _name:string;
        public get name():string{
            return this._name;
        }
        public set name(value:string){
            this._name=value;
        }
        public get  domain():Entity{
            return this._domain;
        }
        public set domain(value:Entity){
            this._domain=value;
        }
		
        public get parent():Entity{
            return this._parent;
        }
        public set parent(value:Entity){
            this._parent = value;
            this._parent.children.set(this.id, this);
            // if (this.node != null && this._parent.node != null)
            // {
            //     this.node.setParent(this._parent.node);
            // }
        }
    }
}